package com.frxuexi.park2210.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.entity.ParkBeanItem
import com.frxuexi.park2210.R

class ParkAdapter:BaseQuickAdapter<ParkBeanItem,BaseViewHolder>(R.layout.item_park) {
    override fun convert(helper: BaseViewHolder, item: ParkBeanItem) {
        helper.setText(R.id.park_id,item.parkId.toString())
        helper.setText(R.id.park_name,item.parkName)
        helper.setText(R.id.park_start,item.parkStart)
        helper.setText(R.id.park_end,item.parkEnd)
        helper.setText(R.id.park_time,item.parkTime)
        helper.setText(R.id.park_user,item.parkUser.toString())
    }
}